﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace A_Shop.Models
{
        [Table("Productos")]
        public class Producto 
        {
            [Key]
            [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
            public int id { get; set; }
            public string Nombre { get; set; }
            public string Modelo { get; set; }
            public virtual Marca Marca { get; set; }
            public double Precio { get; set; }
            public string Descripcion { get; set; }
            public string Foto { get; set; }
        }
    }
